import $http from '@/mapper/http.js';
const base= '/sns/work';
let apiConfig = {
	like: base + '/like',
	dislike: base + '/like/cancel',
	workDetail: base + '/detail'
	
}
export default {
	like(workId,isLike){
		if(isLike){
			return $http.post(apiConfig.like,{
				work_id:workId
			})
		}else {
			return $http.post(apiConfig.dislike,{
				work_id:workId
			})
		}
		
	},
	getWorkDetail(work_id){
		return $http.post(apiConfig.workDetail,{
			work_id
		})
	}
}